home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-02-13 | 7.0 KB | 292 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: ODBindng.xh.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emitxh.dll: 2.33
- */
-
- /*
- *
- * Classes defined in this interface
- *
- */
-
-
- #ifndef SOM_ODBinding_xh
- #define SOM_ODBinding_xh
-
- class ODBinding;
-
- #define ODBinding_MajorVersion 2
- #define ODBinding_MinorVersion 0
-
- /* C++ SOM defs */
- #include <somcls.xh>
- #include <somcm.xh>
-
- /* C++ parent defs */
- #ifndef SOM_ODObject_xh
- #include <ODObject.xh>
- #endif
-
- #ifndef ODBinding_API
- #define ODBinding_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
- class SOMClass;
- class SOMObject;
- class ODFrame;
- class ODFacet;
- class ODObject;
- class ODExtension;
- class ODBinding;
- class ODSession;
- class ODStorageUnit;
- class ODPart;
- class ODTypeList;
- class ODNameSpaceManager;
-
- /*
- * End of user-defined types.
- */
-
- #ifdef OLDIBMSOMAPISUPPORT
- #define ODBindingCClassData ODBindingClassData
- #define ODBindingNewClass(major,minor) somNewVersionedClassReference(ODBinding,major,minor)
- #endif
-
- /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
- #define ODBindingMetaClass SOMClass
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=power
- #endif
-
- /* The API to the ODBinding class object, and the methods it introduces. */
- SOMEXTERN struct ODBindingClassDataStructure {
- #ifdef OLDIBMSOMAPISUPPORT
- SOMClass *classObject; /* always zero, use somNewClassReference instead */
- #else
- long zero;
- #endif
- somStaticClassInfo *sci;
- somDToken instanceDataToken;
- long reserved [3];
- somMToken ChooseEditorForPart;
- somMToken GetContainerSuite;
- somMToken reserved1;
- somMToken reserved2;
- somMToken GetUserStringForKind;
- somMToken GetUserStringForEditor;
- somMToken GetUserStringForCategory;
- somMToken GetODFileSpecFromEditor;
- somMToken reserved3;
- somMToken reserved4;
- somMToken reserved5;
- somMToken reserved6;
- somMToken reserved7;
- somMToken reserved8;
- somMToken reserved9;
- somMToken reserved10;
- somMToken reserved11;
- somMToken reserved12;
- somMToken reserved13;
- } SOMDLINK ODBindingClassData;
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=reset
- #endif
-
- #if !defined(ODBinding_Class_Source) && !defined(SOM_Module_odbindng_Source)
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import list ODBindingClassData
- #endif
- #endif
-
-
- /*
- * -- Typedefs and inline method declarations for left path inherited methods
- * -- are omitted because this compilation had -museinheritedmethods in effect
- */
-
-
- /*
- * -- Typedefs for ODBinding Method Procedures
- */
- SOMEXTERN {
- typedef ODEditor (* SOMLINK somTD_ODBinding_ChooseEditorForPart)(ODBinding *somSelf, Environment *ev,
- ODStorageUnit* thePartSU,
- ODType newKind);
- typedef ODContainerSuite (* SOMLINK somTD_ODBinding_GetContainerSuite)(ODBinding *somSelf, Environment *ev,
- ODContainerType containerType);
- typedef ODBoolean (* SOMLINK somTD_ODBinding_GetUserStringForKind)(ODBinding *somSelf, Environment *ev,
- ODKind kind,
- ODName* name);
- typedef ODBoolean (* SOMLINK somTD_ODBinding_GetUserStringForEditor)(ODBinding *somSelf, Environment *ev,
- ODEditor editor,
- ODName* name);
- typedef ODBoolean (* SOMLINK somTD_ODBinding_GetUserStringForCategory)(ODBinding *somSelf, Environment *ev,
- ODCategory category,
- ODName* name);
- typedef ODBoolean (* SOMLINK somTD_ODBinding_GetODFileSpecFromEditor)(ODBinding *somSelf, Environment *ev,
- ODEditor editor,
- ODByteArray* fileSpec);
- }
-
- #endif /* ODBinding_API */
-
-
- /*
- * -- This emitter treats Method Tokens as Thunks by default.
- * -- Use the sc modifier "nothunks" to change this default
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * -- The C++ Wrapper Class for ODBinding
- */
- class ODBinding : public ODObject
- {
- public:
-
- // ODBinding::new registers use of the class object, and then uses somNew
- // to allocate memory and load the object method table pointer.
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- // Allocate memory using the default allocator for ODBinding, and
- // clear mem & set method table pointer, call basic initialization
- #ifdef SOMCHKNULL
- void * __somResult = (void *)
- somNewObject(ODBinding);
- SOMCHKNULL(__somResult);
- return __somResult;
- #else
- return (void*) somNewObject(ODBinding);
- #endif
- }
-
- // ODBinding::delete uses the default deallocator for the object's class.
- void operator delete(void * obj)
- {
- if (obj) {
- SOM_Resolve(obj,SOMObject,somFree)
- ( (SOMObject*) obj );
- }
- }
-
- /* method: ChooseEditorForPart */
- ODEditor ChooseEditorForPart(Environment *ev,
- ODStorageUnit* thePartSU,
- ODType newKind)
- {
- #ifdef SOMCHKEXCEPT
- ODEditor __somResult =
- SOM_ResolveD(this,ODBinding,ODBinding,ChooseEditorForPart)
- (this,ev,thePartSU,newKind);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,ODBinding,ODBinding,ChooseEditorForPart)
- (this,ev,thePartSU,newKind);
- #endif
- }
-
- /* method: GetContainerSuite */
- ODContainerSuite GetContainerSuite(Environment *ev,
- ODContainerType containerType)
- {
- #ifdef SOMCHKEXCEPT
- ODContainerSuite __somResult =
- SOM_ResolveD(this,ODBinding,ODBinding,GetContainerSuite)
- (this,ev,containerType);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,ODBinding,ODBinding,GetContainerSuite)
- (this,ev,containerType);
- #endif
- }
-
- /* method: GetUserStringForKind */
- ODBoolean GetUserStringForKind(Environment *ev,
- ODKind kind,
- ODName* name)
- {
- #ifdef SOMCHKEXCEPT
- ODBoolean __somResult =
- SOM_ResolveD(this,ODBinding,ODBinding,GetUserStringForKind)
- (this,ev,kind,name);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,ODBinding,ODBinding,GetUserStringForKind)
- (this,ev,kind,name);
- #endif
- }
-
- /* method: GetUserStringForEditor */
- ODBoolean GetUserStringForEditor(Environment *ev,
- ODEditor editor,
- ODName* name)
- {
- #ifdef SOMCHKEXCEPT
- ODBoolean __somResult =
- SOM_ResolveD(this,ODBinding,ODBinding,GetUserStringForEditor)
- (this,ev,editor,name);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,ODBinding,ODBinding,GetUserStringForEditor)
- (this,ev,editor,name);
- #endif
- }
-
- /* method: GetUserStringForCategory */
- ODBoolean GetUserStringForCategory(Environment *ev,
- ODCategory category,
- ODName* name)
- {
- #ifdef SOMCHKEXCEPT
- ODBoolean __somResult =
- SOM_ResolveD(this,ODBinding,ODBinding,GetUserStringForCategory)
- (this,ev,category,name);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,ODBinding,ODBinding,GetUserStringForCategory)
- (this,ev,category,name);
- #endif
- }
-
- /* method: GetODFileSpecFromEditor */
- ODBoolean GetODFileSpecFromEditor(Environment *ev,
- ODEditor editor,
- ODByteArray* fileSpec)
- {
- #ifdef SOMCHKEXCEPT
- ODBoolean __somResult =
- SOM_ResolveD(this,ODBinding,ODBinding,GetODFileSpecFromEditor)
- (this,ev,editor,fileSpec);
- SOMCHKEXCEPT;
- return __somResult;
- #else
- return SOM_ResolveD(this,ODBinding,ODBinding,GetODFileSpecFromEditor)
- (this,ev,editor,fileSpec);
- #endif
- }
-
- }; /* ODBinding */
-
-
-
- #endif /* SOM_ODBinding_xh */
-